import axios from './axios';

export const getNews = (params) =>
    axios.get(`/news/pageList`, { params })

// export const putNews = (newsId, data) =>
//     axios.put(`/news/pageList/${newsId}`, data)

// export const getNews = (page, newsType) =>
//     axios.get(`/news/pageList`, {
//         params: { page, newsType }
//     })

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList`,{
//         params: {page: page,newsType: type}
//     })

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList?page=${page}&newsType=${type}`)